package com.cdc.urls;

import java.util.HashMap;
import java.util.Map;
public class UserTools {
	public static User initDefaultUser() {
		User user = new User(0l,"张飞","https://cdcdec.github.io/images/thumbnail_0.jpg",99);
		return user;
	}
	public static Map<Integer,User> initUsers(){
		Map<Integer,User> users=new HashMap<>();
		users.put(0, initDefaultUser());
		User user1 = new User(1l,"马云","https://cdcdec.github.io/images/thumbnail_1.jpg",90);
		users.put(1, user1);
		
		User user2 = new User(2l,"马化腾","https://cdcdec.github.io/images/1024_4.jpg",91);
		users.put(2, user2);
		
		User user3 = new User(3l,"刘强东","https://cdcdec.github.io/images/1024_5.jpg",92);
		users.put(3, user3);
	
		User user4 = new User(4l,"董明珠","https://cdcdec.github.io/images/1024_6.jpg",93);
		users.put(4, user4);
	
		return users;
	}

}
